#ifndef SINGLETON_PATTERN_H
#define SINGLETON_PATTERN_H

class SingleObject
{
public:
    SingleObject( SingleObject const&) = delete;
    SingleObject& operator=( SingleObject const& )  = delete;
    static SingleObject * getInstance();
    void showMessage();
private:
    SingleObject() {};
    static SingleObject* instance;
};

SingleObject* SingleObject::instance = nullptr;

#endif // SINGLETON_PATTERN_H
